/*
 * @Description:
 * @Version: 1.0
 * @Author: MapleLeaf
 * @Date: 2021-05-22 12:03:29
 * @LastEditors: MapleLeaf
 * @LastEditTime: 2021-05-22 18:26:34
 */
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
// import Layout from "@/layout/index.vue";

const constantRoutes: Array<RouteRecordRaw> = [
  {
    path: "/404",
    component: () => import("@/views/404.vue"),
    meta: { hidden: true },
  },
  {
    path: "/",
    component: () => import("../views/home/home.vue"),
    //redirect: "/homePage",
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: constantRoutes,
});

export default router;
